﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace mediatheque.Models
{
    public class ChapitresModel
    {
        private static mediathequeEntities db = new mediathequeEntities();

        public static IEnumerable<chapitre> getTracklist(int oeuvreId)
        {
            var res = db.chapitres.Where(c => c.oeuvre_id == oeuvreId);
            return res;
        }

    }
}